package com.ws.shop.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ws.shop.bean.Page;
import com.ws.shop.dao.LoginlogDao;
import com.ws.shop.service.LoginlogService;

@Service(value="loginlogService")
public class LoginlogServiceImpl implements LoginlogService {
	@Resource(name="loginlogDao")
	private LoginlogDao loginlogDao;
	
	@Transactional(propagation=Propagation.NOT_SUPPORTED,readOnly=true)
	public Page findLoginlogListPage(int pageno,int pagesize, String name, String start,
			String end) {
		return loginlogDao.findLoginlogListPage(pageno,pagesize,name,start,end);
	}
	
	public void getLoginInfoByUserId(final Page page ,final int uid){
		
		loginlogDao.getLoginInfoByUserId(page, uid);
	}

}
